﻿using Ninject;
using NinjectManager.NinjectInstallers;

namespace NinjectManager
{
    public static class NinjectWebCommon
    {
        /// <summary>
        /// Stops the application.
        /// </summary>
        /*    public static void Stop(IKernel kernel)
            {
                kernel.
            }*/

        /// <summary>
        /// Creates the kernel that will manage your application.
        /// </summary>
        /// <returns>The created kernel.</returns>
        public static void SetupDependencyInjection(IKernel kernel)
        {
            RegisterServices(kernel);
        }

        /// <summary>
        /// Load your modules or register your services here!
        /// </summary>
        /// <param name="kernel">The kernel.</param>
        private static void RegisterServices(IKernel kernel)
        {
            PresentationServicesInstaller.Instal(kernel);
            RepositoryInstaller.Instal(kernel);
            DomainServicesInstaller.Instal(kernel);
        }
    }
}